hvm vmx: Another small fix for CPUs with no TPR_SHADOW support.
authorKeir Fraser <keir@xensource.com>
Wed, 25 Apr 2007 21:29:39 +0000 (22:29 +0100)
committerKeir Fraser <keir@xensource.com>
Wed, 25 Apr 2007 21:29:39 +0000 (22:29 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/hvm/vmx/intr.c

index 73487efa9e66b25f6bc0ef3f398780e482bf030a..9587ee14513ce4b1f7a6c22c9793399f1e735bd5 100644 (file)
@@ -72,6 +72,9 @@ static void update_tpr_threshold(struct vlapic *vlapic)
 {
     int max_irr, tpr;
 
+    if ( !cpu_has_vmx_tpr_shadow )
+        return;
+
     if ( !vlapic_enabled(vlapic) || 
          ((max_irr = vlapic_find_highest_irr(vlapic)) == -1) )
     {